﻿using Kele.Activity.Helper;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations.Schema;

namespace Kele.Activity.Models
{
    [Table("kl_form_item")]
    public class FormItem
    {
        public int Id { get; set; }

        [JsonIgnore]
        public int FormId { get; set; }

        public string Title { get; set; }
        public string Key { get; set; }
        public string Type { get; set; }

        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public string Funcs { get; set; }

        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public string Description { get; set; }

        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public string Options { get; set; }

        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public string Props { get; set; }

        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public string Rules { get; set; }
    }

}